package homework.oo4.exercise01;

public class AnonInnerClassDemo {
    public static void main(String[] args) {

        Inter o1 = new Inter(){};

        Inter o2 = new Inter(){};

        InterInter o3 = new InterInter(){
            public void show(){
                System.out.println("showshow");
            }
        };
        o3.show();

        InterInter o4 = new InterInter(){
            public void show(){
                System.out.println("showshowshow");
            }
        };
        o4.show();
    }
}

interface Inter{
}

interface InterInter{
    void show();
}
